<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  
  <head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title>List Supermarket</title>
    <meta name="description" content="List Supermarket" />
    <link rel="shortcut icon" href="imagenes/favicon.png"> 

    <link rel="stylesheet" href="css/reset.css" />
    <link rel="stylesheet" href="css/visualize.css" />
    <link rel="stylesheet" href="css/datatables.css" />
    <link rel="stylesheet" href="css/buttons.css" />
    <link rel="stylesheet" href="css/checkboxes.css" />
    <link rel="stylesheet" href="css/inputtags.css" />
    <link rel="stylesheet" href="css/main.css" />
    
    <!--[if lt IE 9]>
    <link rel="stylesheet" href="/admincp/css/ie.css" />
    <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    
    <!-- JavaScript -->
    <script src="js/excanvas.js"></script>
    <script src="js/jquery.js"></script>
    <script src="js/jquery.livesearch.js"></script>
    <script src="js/jquery.visualize.js"></script>
    <script src="js/jquery.datatables.js"></script>
    <script src="js/jquery.placeholder.js"></script>
    <script src="js/jquery.selectskin.js"></script>
    <script src="js/jquery.checkboxes.js"></script>
    <script src="js/jquery.validate.js"></script>
    <script src="js/jquery.inputtags.js"></script>
    <script src="js/notifications.js"></script>
    <script src="js/application.js"></script>

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-11172759-12']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
  </head>

  <body>
    <div id="gradient">
      <div id="stars">
        <div id="container">
        
          <header>
          
            <!-- Logo -->
            <h1 id="logo">List Supermarket</h1>
          
            <!-- Info Usuario -->
            <div id="userinfo">
              <img src="imagenes/avatar.png" alt="Usuario" />
              <div class="intro">
                Bienvenido Usuario<br />
                <a href="login.jsp">Cerrar Sesión</a>
              </div>
            </div>
          
          </header>
        
          <!-- The application "window" -->
          <div id="application">
          
            <!-- Primary navigation -->
            <nav id="primary">
              <ul>
                <li>
                  <a href="dashboard.jsp">
                    <span class="icon dashboard"></span>
                    Dashboard
                  </a>
                </li>
                
                <li>
                  <a href="usuario.jsp">
                    <span class="icon pencil"></span>
                    Usuarios
                  </a>
                </li> 
                              
                <li class="current" >
                  <a href="supermercado.jsp">
                    <span class="icon modal"></span>
                    Supermercados
                  </a>
                </li>
                
                <li >
                  <a href="tabla_usuarios.jsp">
                    <span class="icon tables"></span>
                    Tabla de Usuarios
                  </a>
                </li>
		            
              </ul>
            
            </nav>
          
            <!-- Secondary navigation -->
            <nav id="secondary">
              <ul>
                <li class="current"><a href="#">Modificar Supermercado</a></li>
              </ul>
            </nav>
          
            <!-- The content -->
            <section id="content">
            <br />

            <h2>Supermercados</h2>
            
            <form method="post" action="/Somos_punto/ModificarSupermercadoServlet">
            
            <%@page import="somospunto.modelo.Supermercado;"%>
			<%
			Supermercado vo = (Supermercado)request.getAttribute("vo");
			%>
            
              <div class="column left third">
                <section>
                  <label for="nom_supermercado">Supermercado*</label>
                  <div>
                    <input name="nom_supermercado" value="<%=vo.getNombre() %>"type="text" class="required" />
                  </div>
                  
                 </section>
                 
                 <section>
                  <label>Estado*</label>
                  <div>
                  	<input name="habil_supermercado" value="<%=vo.getHabilitado() %>"type="text" class="required" />                   
                  <div>
                    	<br /><br /><br /><input type="submit" value="Guardar" class="button primary" />
                    					  <input type="button" value="Regresar" class="button primary" onclick="window.location='/Somos_punto/admin_total/supermercado.jsp' " /> 	 
                  	</div>
            
                    <div class="clear"></div>
                  </div>
                </section>
                 <section></section>     
              </div>
            </form>

            <div class="column right ">  
              
            </div>

<div class="clear"></div>

            </section>
          </div>
        
          <footer id="copyright">Desarrollado por SomosPunto. © 2012.</footer>
        </div>
      </div>
    </div>

    
  </body>
</html>